package com.xiaoxu.intranetweb.mybatisplusSzappdb.Dic;

import org.springframework.stereotype.Component;

@Component
public class CFinaceEnterDic {
//    FINANCE_ENTERED为1时，充值成功
    public String getFinanceEnteredDic(Integer financeEntered){
        String dic = "";
        if (financeEntered == null ){
            return dic;
        }
        switch (financeEntered){
            case 0:
                dic = "否";
                break;
            case 1:
                dic = "是";
                break;
            default:
                dic = "";
                break;
        }
        return dic;
    }
//    SFN_FINANCE_APPRVED为1时，通过一级审批
    public String getSfnFinanceApprvedDic(Integer sfnFinanceApprved){
        String dic = "";
        if (sfnFinanceApprved == null ){
            return dic;
        }
        switch (sfnFinanceApprved){
            case 0:
                dic = "否";
                break;
            case 1:
                dic = "是";
                break;
            default:
                dic = "";
                break;
        }
        return dic;
    }
//    SFN_FINANCE_APPRVED2
    public String getSfnFinanceApprved2Dic(Integer sfnFinanceApprved2){
        String dic = "";
        if (sfnFinanceApprved2 == null ){
            return dic;
        }
        switch (sfnFinanceApprved2){
            case 0:
                dic = "否";
                break;
            case 1:
                dic = "是";
                break;
            default:
                dic = "";
                break;
        }
        return dic;
    }
}
